package com.xzy.b;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 依赖注入的方式：<constructor-arg/> + 构造方法
 *
 * @author xzy
 * @date 2021/12/6  22:17
 */
public class Main {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("b/beanWired.xml");
        System.out.println(applicationContext.getBean(BbbServiceImpl.class));
    }
}
